#include "tinyexpr.h"
#include <stdio.h>

int main() {
    int error;
    double result;
    
    result = te_interp("!+5", &error);
    printf("!+5 = %f, error = %d\n", result, error);
    
    result = te_interp("!5", &error);
    printf("!5 = %f, error = %d\n", result, error);
    
    result = te_interp("!0", &error);
    printf("!0 = %f, error = %d\n", result, error);
    
    return 0;
}
